package com.lagou.common.feign;

import com.lagou.common.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(name = "lagou-service-goods",fallback = GoodsFeignFallBack.class)
@Service
public interface GoodsFeign {


    /**
     * 根据id查询商品
     * @param id
     * @return
     */
    @RequestMapping("/goods/query/{id}")
    Goods queryGoodsById(@PathVariable Integer id);

}

